package com.ezops.dtcc.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ezops.dtcc.model.AckNack;
import com.ezops.dtcc.model.DtccRulesDef;
import com.ezops.dtcc.model.DtccRulesSql;

public class DtccRulesSqlRowMapper implements RowMapper<Object> {
	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		DtccRulesSql dtccRuleSql = new DtccRulesSql();
		dtccRuleSql.setRuleId(rs.getInt("RULE_ID"));
		dtccRuleSql.setRuleName(rs.getString("RULE_NAME"));
		dtccRuleSql.setSqlStmt(rs.getString("SQL_STAT"));
		return dtccRuleSql;
	}
}
